﻿using System.ComponentModel.DataAnnotations.Schema;

namespace NanjingbeiRailwayStation.Data.ClickHouse.Models
{
    /// <summary>
    /// 塔吊用电监控
    /// </summary>
    public class TowerCranePowerMonitoring
    {

        /// <summary>
        /// 
        /// </summary>
        public string imei { get; set; } = string.Empty;


        /// <summary>
        /// 
        /// </summary>
        /// 
  
        public string deviceName { get; set; } = string.Empty;


        /// <summary>
        /// 安装位置
        /// </summary>
       
        public string installationLocation { get; set; } = string.Empty;

        /// <summary>
        /// 电压
        /// </summary>

        public double Real_UA { get;set; } = 0;
        /// <summary>
        /// 电流
        /// </summary>
        public double Real_IA { get; set; } = 0;


        /// <summary>
        /// 电压
        /// </summary>

        public double Real_UB { get; set; } = 0;
        /// <summary>
        /// 电流
        /// </summary>
        public double Real_IB { get; set; } = 0;


        /// <summary>
        /// 电压
        /// </summary>

        public double Real_UC { get; set; } = 0;
        /// <summary>
        /// 电流
        /// </summary>
        public double Real_IC { get; set; } = 0;

        /// <summary>
        /// 用电量
        /// </summary>
        /// <summary>
        /// 当前正向A相累计有功电能 单位:KwH
        /// </summary>
        public Double ActiveEnergyImportInPhaseL1 { get; set; } = 0;

        /// <summary>
        /// 当前正向B相累计有功电能 单位:KwH
        /// </summary>
        public Double ActiveEnergyImportInPhaseL2 { get; set; } = 0;

        /// <summary>
        /// 当前正向C相累计有功电能 单位:KwH
        /// </summary>
        public Double ActiveEnergyImportInPhaseL3 { get; set; } = 0;

        /// <summary>
        ///  塔吊 状态
        /// </summary>
        /// 
        [NotMapped]
        public TowerCraneStatus TowerCraneStatus { get; set; } = TowerCraneStatus.Normal;

    }
}
